﻿using System;
using System.Data;
using System.Collections.Generic;
using myomscl.Utils;

namespace myomscl.Interfaces
{
    #region delegate
    public delegate void OnMainListViewLoad();
    public delegate void OnViewChangeStatus(Int32 id,Int32 newStatus, Int32 oldStatus);
    public delegate void OnViewSaveClick();
    public delegate DataTable GetExcelForInvoice(bool archive, List<string>ids, Int32? status, Int32 format);
    public delegate void OnSendToArchiveList(List<string> listOfId);
    
    public delegate void OnViewRemoveSelection(Int32 alertid);

    #endregion

    public interface IMainListView : IView
    {
        #region properties
        DataRow[] Alerts { set; }
        string ScreenName { set; }
        #endregion

        #region events
        event OnMainListViewLoad OnListLoad;
        event OnViewChangeStatus OnChangeStatus;
        event OnViewSaveClick OnSave;
        event GetExcelForInvoice OnRequestExcelForInvoice;        
        event OnViewRemoveSelection OnRemoveSelection;
        event OnSendToArchiveList SendToArchiveList;


        #endregion
    }
}
